package com.lvt.design.pattern.module.refactor.testdemo.v2;

/**
 * @author LT
 * @date 2023年02月23日 9:49
 */
public class TransactionLock {
    public boolean lock(String id) {
        return RedisDistributedLock.getSingletonInstance().lockTransaction(id);
    }

    public boolean unlock(String id) {
       return RedisDistributedLock.getSingletonInstance().unlockTransaction(id);
    }
}
